'use strict';

/**
 * @ngdoc function
 * @name jgappApp.controller:UserAboutjgCtrl
 * @description
 * # UserAboutjgCtrl
 * Controller of the jgappApp
 */
angular.module('jgappApp')
    .controller('UserAboutjgCtrl', function(Util, appVersion, $location) {
        var vm = this;
        this.checkupdate = function() {
            Util.checkUpate().then(function(data) {
                if (!data) {
                    Util.Toast("当前已是最新版本");
                }
            });
        }
        this.goupdatelog = function() {
            $location.path("user/updatelog");
        };
        this.init = function() {
            var param = {};
            var platform = Util.getPlatform();
            appVersion.getAppVersion().then(function(data) {
                this.versionNo = data;
            }.bind(this))

        }
        this.init();
    });
